/**
 * 
 */
package com.tx.algorithms.sort;

import com.tx.algorithms.array.Person;

/**
 * Sort Type
 * @author wanghy
 * @since 2012-10-18
 * 
 */
public class Sort {

	protected long[] arr;
	
	protected int nElems;
	
	protected Person[] pers;
	
	public Sort() {
	}
	
	public Sort(int max) {
		arr = new long[max];
		pers = new Person[max];
		nElems = 0;
	}
	
	public void insert(long value) {
		arr[nElems] = value;
		nElems++;
	}
	
	public void display() {
		for (int j = 0; j < nElems; j++) {
			System.out.print(arr[j] + " ");
		}
		System.out.println();
	}
	
	protected void swap(int one, int two) {
		long temp = arr[one];
		arr[one] = arr[two];
		arr[two] = temp;
	}
}
